package models

import "time"

type Hotel struct {
	Id               uint      `json:"id,omitempty" gorm:"primaryKey;autoIncrement"`
	CostsIncludes    string    `json:"costs_includes,omitempty" gorm:"type:text"`
	CostsNotIncludes string    `json:"costs_not_includes,omitempty" gorm:"type:text"`
	MoneyBack        string    `json:"money_back,omitempty" gorm:"type:text"`
	ShopId           int64     `json:"shop_id,omitempty" gorm:"not null;default:0;comment:旅游项目"`
	Title            string    `json:"title,omitempty" gorm:"not null;default:'';comment:酒店标题"`
	Images           string    `json:"images,omitempty" gorm:"not null;default:'';comment:酒店图片"`
	Position         string    `json:"position,omitempty" gorm:"not null;default:'';comment:酒店地址"`
	Sort             int       `json:"sort,omitempty" gorm:"not null;default:100;comment:排序"`
	Status           bool      `json:"status,omitempty" gorm:"not null;comment:状态:1=上线,0=下线"`
	CreatedTime      time.Time `json:"created_time,omitempty" gorm:"default:CURRENT_TIMESTAMP;comment:创建时间"`
	UpdatedTime      time.Time `json:"updated_time,omitempty" gorm:"default:CURRENT_TIMESTAMP;comment:更新时间"`
}

func (Hotel) TableName() string {
	return "fa_hotel"
}
